<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html >
<html lang="en">
<head>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../../common/operation_forbid.jsp" %>
<%@include file="../../../common/jsVersion.jsp" %>
<link rel="stylesheet" href="${jypath}/static/plugins/zTree/3.5/zTreeStyle.css" />
<script type="text/javascript" src="${jypath}/static/plugins/zTree/3.5/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="${jypath}/static/plugins/zTree/3.5/jquery.ztree.excheck-3.5.js"></script>
</head>
<body>
	<div class="page-content">
		<div class="row-fluid">
			<div class="col-xs-12">
				<div>
					<div class="col-sm-3">
						 <div class="dataTables_info customBtn">
						 <c:forEach var="btn" items="${permitBtn}">
        						<c:choose>
								<c:when test="${btn.permission=='system:org:add'}"><a class="lrspace3" id="addPosBtn" title="新增部门" href="#"><i class="glyphicon glyphicon-plus color-green bigger-130"></i></a></c:when>
								<c:when test="${btn.permission=='system:org:edit'}">
								<a class="lrspace3" id="editOrgBtn" title="修改部门" href="#"><i class="icon-edit color-blue bigger-130"></i></a>
								</c:when>
								<c:when test="${btn.permission=='system:org:delete'}">
								<a class="lrspace3" id="delOrgBtn" title="删除部门" href="#"><i class="icon-remove-sign color-red bigger-130"></i></a>
								</c:when>
								<c:when test="${btn.permission=='system:org:view'}">
								<a class="lrspace3" id="checkOrgBtn" title="查看部门" href="#"><i class="icon-zoom-in color-purple bigger-130"></i></a>
								</c:when>
								</c:choose>
										
						 </c:forEach>
						</div>
						<ul id="orgTree" class="ztree orgTree"></ul>
					</div>	
					<div class="col-sm-9">	
						<div id="rightOrgDiv" class="hide">
							<div class="row page-header">
								<h1>&nbsp;<span id='title1'></span><small>  <span id='title2'></span> </small></h1>
							</div>
							 <form id="baseOrgForm" method="POST" onsubmit="return false;">
							
								<div class="widget-main customBtn">	
									<input  type="text" name="userName"  placeholder="姓名" class="input-large">																								
									&nbsp;&nbsp;
									<select name="roleId" id="searchRoleId">
							        </select>	
							        &nbsp;&nbsp;
									<select name="userStatus" >
									   <option value="">所有状态</option>
									   <option value="0">在用</option>
									   <option value="1">禁用</option>
							        </select>																						
								<c:forEach var="btn" items="${permitBtn}">
        								<c:choose>
        									 <c:when test="${btn.permission=='system:user:add'}">
											&nbsp;&nbsp;<button type="button" id="sys_user_add" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-plus">新增</span></button>	
											</c:when> 
											<c:when test="${btn.permission=='system:user:list'}">
											<button class="btn btn-warning  btn-sm" type="button" onclick="getOrgList(1)"><span class="glyphicon glyphicon-search">查询</span></button>	
											</c:when>
										</c:choose>
										</c:forEach>
<!-- 									<input type="file" name="multipartFile" id="multipartFile" enctype="multipart/form-data"/> -->
<!-- 									<button type="button" onclick="importFile()" id="import_button" class="btn btn-warning  btn-sm"><span class="glyphicon glyphicon-plus">部门信息导入</span></button> -->
<!-- 									<input type="file" name="userInfoFile" id="userInfoFile" enctype="multipart/form-data"/> -->
<!-- 									<button type="button" onclick="importUserFile()" id="import_userInfo_button" class="btn btn-warning  btn-sm"><span class="glyphicon glyphicon-plus">职工信息导入</span></button> -->
								
								</div>			
							<input type='hidden' class='pageNum' name='pageNum' value='1'/>
							<input type='hidden' class='pageSize'  name='pageSize' value='10'/>
							<input type='hidden' name='userDepartmentId' />
							</form> 
								
							<table id="baseOrgTable" class="table table-striped table-bordered table-hover" >
								<thead>
									<tr>
										<!-- <th style="width:3%" class="center">
											<label><input type="checkbox" class="ace" ><span class="lbl"></span></label>
										</th>  -->
										<th style="width:7%"  class="center hidden-480">序号</th>
										<th class="center">操作</th>
										<th class="center">员工姓名</th>
										<th class="center">手机号</th>
										<th class="center">部门</th>
										<th class="center">状态</th>
										<th class="center">角色</th>
										
									</tr>
								</thead>
								<tbody></tbody>
							</table>
							<div class="row">
								<div class="col-sm-4"></div>
								<div class="col-sm-8">
									<!--设置分页位置-->
									<div id="orgpageing" class="dataTables_paginate paging_bootstrap">
										<ul class="pagination"></ul>
									</div>
								</div>
							</div>
						</div>

					</div>	
				</div>	
			<!-- #addorUpdateFrom -->
			<%@include file="form.jsp" %>
			<!-- #dialog-confirm -->
			<%@include file="../../common/dialog.jsp" %>
			<%@include file="projectAuthorized.jsp" %>
			
			</div>
		</div>
	</div>
<script type="text/javascript" src="${jypath}/static/js/jquery/ajaxfileupload.js" ></script>
<script src="${jypath}/static/js/system/org/position.js?v=${jsVersion}"></script>
<div id="btnListJson" style="display: none;">
${btnListJson}
</div>
<script type="text/javascript">
	var resourcesCode = "${menu}";
</script>
</body>
</html>